<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" type="text/css" href="<%=basePath%>static/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>static/themes/icon.css">
	<script type="text/javascript" src="<%=basePath%>static/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>static/jquery.easyui.min.js"></script>
	
	
  </head>
  
  <body>
    <table id="dg" class="easyui-datagrid">	</table>
	
	<script type="text/javascript">
		
		$(function(){
			$("#dg").datagrid({
				fit:true,
				border:false,
				pagination: true,
				singleSelect:"true",
				url:'demo_showlist.action',
				columns:[[
					{field: 'Id', width: 150, align: 'center'},
					{field: 'userId', title: 'userId', width: 150, align: 'center'},
					{field: 'userName', title: 'userName', width: 150, align: 'center'},
					{field: 'userId', title: '名称', width: 150, align: 'center'},
					{field: 'password', title: 'password', width: 150, align: 'center'},
					{field: 'email', title: 'email', width: 150, align: 'center'},
					{field: 'brithday', title: 'brithday', width: 150, align: 'center'}
				]],
				toolbar: [{
                text: '新增',
                iconCls: 'icon-add',
                handler: addView
            }, {
                text: '删除',
                iconCls: 'icon-remove',
                handler: addView
            }]
				
			});
		});
		
		
		function addView(){
			alert("test");
		}
	</script>
    
  </body>
</html>
